package com.ddbook.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@NoArgsConstructor//空参构造
@AllArgsConstructor//全参构造
@TableName("t_author")
public class Author {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private String name;
    private String username;
    private String password;
    private String salt;
    private String sex;
    private String address;
    private Integer telephone;
    private String contract;
    private Date creat_time;
    private String status;
    private Integer attr1;
    private Integer attr2;
    private String attr3;
    private String attr4;
}
